//+------------------------------------------------------------------+
//|                                              OpenOrdersPrint.mq4 |
//|                               Copyright 2012, MAG.Software.Forex |
//|                                                              --- |
//+------------------------------------------------------------------+
#property copyright "Copyright 2012, MAG.Software.Forex"
#property link      "---"

//+------------------------------------------------------------------+
//| script program start function                                    |
//+------------------------------------------------------------------+
int start()
{
  for (int cnt = OrdersTotal() - 1; cnt >= 0; cnt--)
  {
    OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
    if (OrderSymbol() == Symbol())
    {
      OrderPrint();
    }
  }  
  return(0);
}
//+------------------------------------------------------------------+